<#assign ctx=request.contextPath />
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title>实例子任务</title>
    <link rel="stylesheet" href="${ctx}/css.css">
</head>
<body>
<div class="top">
    <a href="${ctx}/hello" class="backtrack"><img src="${ctx}/0.png"></a>
    <a href="javascript:history.back();" class="return"><img src="${ctx}/12.png"></a>
    <div class="box">
        实例子任务
    </div>
</div>
<div class="empty"></div>
<table class="top_box">
<h5>流程实例</h5>

<tr hidden>
    <td class="lo_3">实例ID</td>
    <td class="lo_4">${pinst.id}</td>
</tr>

<tr class="lo_7">
    <td class="lo_3">名称</td>
    <td class="lo_4">${pinst.name!""}</td>
</tr>
<tr>
    <td class="lo_3">发起人</td>
    <td class="lo_4">${pinst.initiator!""}</td>
</tr>
<tr>
    <td class="lo_3">开始日期</td>
    <td class="lo_4">${pinst.startDate?datetime}</td>
</tr>
<tr>
    <td class="lo_3">状态</td>
    <td class="lo_4">${pinst.status}</td>
</tr>

</table>
<div class="data">
    <h5>任务总数: ${otherList?size}</h5> <h5>子任务：${taskList?size}</h5>
</div>


<#list taskList as task>

<table class="list_box">

    <tr hidden>
        <td class="lo_3">ID</td>
        <td class="lo_4">${task.id}</td>
    </tr>
    <tr class="lo_7">
        <td class="lo_3">名称</td>
        <td class="lo_4">${task.name}</td>
    </tr>
    <tr>
        <td class="lo_3">状态</td>
        <td class="lo_4">${task.status}</td>
    </tr>
    <tr>
        <td class="lo_3">分配人</td>
        <td class="lo_4">${task.assignee!""}</td>
    </tr>
    <tr>
        <td class="lo_3">创建日期</td>
        <td class="lo_4">${(task.createDate?datetime)!}</td>
    </tr>
    <tr>
        <td class="lo_3">截止日期</td>
        <td class="lo_4">${(task.dueDate?datetime)!}</td>
    </tr>
    <tr>
        <td class="lo_3">签收</td>
        <td class="lo_4 lo_10"><a href="${ctx}/lossMng/claimTask/${task.id}">签收</a></td>
    </tr>
    <tr>
        <td class="lo_3">所有者</td>
        <td class="lo_4">${task.owner!""}</td>
    </tr>
    <tr>
        <td class="lo_3">签收日期</td>
        <td class="lo_4">${(task.claimDate?datetime)!}</td>
    </tr>
    <tr hidden>
        <td class="lo_3">父任务ID</td>
        <td class="lo_4">${task.parentTaskId!""}</td>
    </tr>
    <tr hidden>
        <td class="lo_3">流程ID</td>
        <td class="lo_4">${task.processDefinitionId}</td>
    </tr>
    <tr hidden>
        <td class="lo_3">实例ID</td>
        <td class="lo_4">${task.processInstanceId}</td>
    </tr>
    <tr>
        <td class="lo_3">描述</td>
        <td class="lo_4">${task.description!""}</td>
    </tr>

</table>
<br/>
</#list>


</body>
</html>